package edu.lsnu.equipment_management_system.mapper.insert;

import edu.lsnu.equipment_management_system.pojo.po.entity.EquipmentDamageTablePo;
import org.apache.ibatis.annotations.Insert;

/**
 * @author mzy
 * @Description 用户提交报废申请的时候，插入报损报废table
 * @date 2018/11/20
 */
public interface EquipmentDamageTableMapper {
    @Insert("insert into JBXX_BSBF(SBBH, BSBF, ZGH, SFRQ, SFYY, YSYNX, ZDBFNX, BZ) " +
            "values " +
            "(#{equipmentNo}, " +
            "#{damageOr}, " +
            "#{userNo}, " +
            "#{damageDate}, " +
            "#{damageReason}, " +
            "#{useYear}, " +
            "#{depreciationPeriod}, " +
            "#{damageReason})")
    int insertEquipmentDamageTable(EquipmentDamageTablePo equipmentDamageTablePo);
}
